﻿using UnityEngine.Playables;

namespace Pvp.Timeline
{
    //无碰撞盒攻击
    public class RoleNoboxAttackBehaviour : BaseRolePlayableBehaviour
    {
        // public int damage = 1;
        // public int playerId = 102;
        // public string underSkillName;
        //
        // private RolexxxEntity.UnderAttackData data;
        //
        // public override void OnBehaviourPlay(Playable playable, FrameData info)
        // {
        //     if (Rolexxx.playerId == 102)
        //         playerId = 101;
        //     else
        //         playerId = 102;
        //
        //     data = new RolexxxEntity.UnderAttackData()
        //     {
        //         underDamage = damage,
        //         underSkillName = underSkillName
        //     };
        //     UnityEngine.Debug.Log($"指向性技能：{Rolexxx.playerId} to {playerId},skill name = {underSkillName}");
        //     RoleUtility.GetRole(playerId).underAttackList.Add(data);
        // }
        // public override void OnBehaviourPause(Playable playable, FrameData info)
        // {
        //     RoleUtility.GetRole(playerId).underAttackList.Remove(data);
        // }
    }
}

